package video.local.analyse.image;

import java.awt.BorderLayout;  
import java.awt.Image;

import javax.swing.*;  
  
public class ShowImage extends JFrame{   
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ShowImage(String title, int w, int h, Image img) {  	           
        JLabel label=new JLabel(new ImageIcon(img));               

        this.getContentPane().setLayout(new BorderLayout());  
        this.getContentPane().add(label);  
        this.setSize(w, h);  
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
        this.setTitle(title);  
        this.setVisible(true);  
        this.setResizable(false);
    }   
}  